package org.example.dialogue.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author zqtao
 */

@Data
@Schema(description = "MessagesUser")
@TableName("messages_user_1")
public class MessagesUser {

    @TableId(value = "message_id", type = IdType.AUTO)
    private Integer messageId;

    /**
     * 对话ID
     */
    @TableField("conversation_id")
    private Integer conversationId;

    /**
     * 消息发送者类型
     */
    @TableField("sender_type")
    private String senderType;

    /**
     * 消息内容
     */
    @TableField("content")
    private String content;

    /**
     * 消息发送时间
     */
    @TableField("send_time")
    private Date sendTime;

}
